/*
 * Gyration.cpp
 *
 *  Created on: Aug 11, 2013
 *      Author: marchi
 */

#include "Gyration.h"
double Gyration::time_c=-1.0;

Gyration::~Gyration(){};

ostream & operator<<(ostream & fout , Gyration & Rgs){
	fout << "  time = "<< fixed << setw(8) << setprecision(4) << Rgs.time_c;
	fout << "  Rg = "<< fixed << setw(8) << setprecision(4) << sqrt(Rgs.Radg);
	fout << "  a = " << fixed << setw(8) << setprecision(4) << sqrt(Rgs.axis[XX]) ;
	fout << "  b = " << fixed << setw(8) << setprecision(4) << sqrt(Rgs.axis[YY]) ;
	fout << "  c = " << fixed << setw(8) << setprecision(4) << sqrt(Rgs.axis[ZZ]) ;
	fout << "  I_x = " << fixed << setw(8) << setprecision(4) << sqrt(Rgs.I[XX]) ;
	fout << "  I_y = " << fixed << setw(8) << setprecision(4) << sqrt(Rgs.I[YY]) ;
	fout << "  I_z = " << fixed << setw(8) << setprecision(4) << sqrt(Rgs.I[ZZ]) ;
	fout << endl;
	return fout;
}
